package com.zzzzzz.topic.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.zzzzzz.common.util.Util;

public class CommentBo {
	
	private Comment _comment;

	private String userThumbnailId;
	private String userName;

	private List<CommentBo> childCommentBos = new ArrayList<CommentBo>(); //有序的关联对象集合
	private Integer childCount;

	public CommentBo(Comment comment) {
		_comment = comment;
	}

	public String getCommentId() {
		return _comment.getCommentId();
	}
	public String getTopicId() {
		return _comment.getTopicId();
	}
	public String getUserId() {
		return _comment.getUserId();
	}
	public String getContent() {
		return _comment.getContent();
	}
	public String getParentId() {
		return _comment.getParentId();
	}
	public Date getCreateDate() {
		return _comment.getCreateDate();
	}

	public String getUserThumbnailId() {
		return userThumbnailId;
	}
	public void setUserThumbnailId(String userThumbnailId) {
		this.userThumbnailId = userThumbnailId;
	}
	public String getDisplayDate() {
		return Util.getTimeDifferent(getCreateDate(), new Date());
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public List<CommentBo> getChildCommentBos() {
		return childCommentBos;
	}
	public void setChildCommentBos(List<CommentBo> childCommentBos) {
		this.childCommentBos = childCommentBos;
	}
	public Integer getChildCount() {
		return childCount;
	}
	public void setChildCount(Integer childCount) {
		this.childCount = childCount;
	}

}
